from rest_framework.pagination import PageNumberPagination


class MovieMessagePagination(PageNumberPagination):
    # 每页显示多少个
    page_size = 12
    # 设置访问参数
    page_size_query_param = 'pageSize'
    # 最大页数不超过10
    max_page_size = 100
    # 获取页码数的
    page_query_param = "currentPage"